package com.allenkerr.app;

import com.webxml.phone.MobileCodeWS;
import com.webxml.phone.MobileCodeWSSoap;

/**
 * 国内手机号码归属地查询
 * --> wsimport -s . -p cn.com.webxml.chinese -encoding utf-8 http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl
 * <p>
 * Created by 小柯(Allen Kerr) on 17.5.16 10:10.
 */
public class PhoneApp {

    public static void main(String[] args) {
        MobileCodeWS mobileCodeWS = new MobileCodeWS();
        MobileCodeWSSoap soap = mobileCodeWS.getMobileCodeWSSoap();
//        String result = soap.getMobileCodeInfo("13644128451", null);
        //实际上，只需要前7位即可
        String result = soap.getMobileCodeInfo("1554411", null);
        System.out.println(result);
    }

}
